package com.superjson.showpro.service;

import com.superjson.showpro.base.GenericService;
import com.superjson.showpro.entity.Comment;
import com.superjson.showpro.shared.enums.CommentTypeEnum;
import com.superjson.showpro.shared.result.Result;

import java.util.List;

public interface CommentService extends GenericService<Comment> {

    Result saveComment(String content, Long articleId, Long userId, CommentTypeEnum commentType);

    Result<List<Comment>> listComment(Long userId, Long articleId);

    Result<List<Comment>> listComment(Long articleId);
}